
package cn.bnet.sag.service.location;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for PosTypeEmu.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p>
 * <pre>
 * &lt;simpleType name="PosTypeEmu">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     &lt;enumeration value="GPS"/>
 *     &lt;enumeration value="GPSone"/>
 *     &lt;enumeration value="Cell"/>
 *     &lt;enumeration value="GPSCell"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlType(name = "PosTypeEmu")
@XmlEnum
public enum PosTypeEmu {

    GPS("GPS"),
    @XmlEnumValue("GPSone")
    GP_SONE("GPSone"),
    @XmlEnumValue("Cell")
    CELL("Cell"),
    @XmlEnumValue("GPSCell")
    GPS_CELL("GPSCell");
    private final String value;

    PosTypeEmu(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static PosTypeEmu fromValue(String v) {
        for (PosTypeEmu c: PosTypeEmu.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
